#include"tcpServer.hpp"
#include<memory>

using namespace Server;
void my_errno(char* message){
    cout<<message<<"使用有误，请加上端口号"<<endl;

}
int main(int argc,char* argv[]){
    if(argc != 2){
        my_errno(argv[0]);
        exit(1);
    }

    uint16_t port = atoi(argv[1]);

    unique_ptr<tcpServer> ret(new tcpServer(port));
    ret->initServer();
    ret->start();
    




    return 0;

}
